package generators;

import java.util.Random;

import objects.Movie;
import testBase.TestBase;
import fw.ApplicationManager;

public class MovieDataGenerator  extends TestBase{
	
	private Random rnd = new Random();
	
	public MovieDataGenerator(ApplicationManager manager) {
		super();
	}


	public Movie generateRandomMovie() { 
		
		Movie movie = new Movie()
						.setTitle("Title" 
								 + (char)(rnd.nextInt(26) + 'a')
								 + (char)(rnd.nextInt(26) + 'a')
								 + (char)(rnd.nextInt(26) + 'a')
								 + "filmName")
								.setYear("" + rnd.nextInt(9) + rnd.nextInt(9) + rnd.nextInt(9)+ rnd.nextInt(9));
									
		return movie;
	}
	

	
}
